
#include "Attenuation.h"

namespace solar
{

    auto Attenuation::getAttenuationType(std::string str) -> int
    {
        int ret = -1;
        if (str == "Custom")
        {
            ret = (int)AttenuationType::kAttenuationCustom;
        }
        else if (str == "Vacuum")
        {
            ret = (int)AttenuationType::kAttenuationVacuum;
        }
        else if (str == "Exponential")
        {
            ret = (int)AttenuationType::kAttenuationExponential;
        }
        return ret;
    }

} // namespace solar
